import { createBrowserRouter, type RouteObject } from 'react-router-dom';


const routes: RouteObject[] = [
  {
    path: '/',
    lazy: async () => ({
      Component: (await import('@/App')).default,
    }),    
  },
  {
    path: '/login',
    lazy: async () => ({
      Component: (await import('@/components/Login')).default,
    }),
  },
  {
    path: '/home',
    lazy: async () => ({
      Component: (await import('@/page/home')).default,
    }),
  },
];

export const router = createBrowserRouter(routes);